//
//  NKWeeklyCollectionCell.swift
//  Nokia
//
//  Created by 易先生 on 2022/3/31.
//

import UIKit
import MYModule

class HorizontalTitleCollectionCell: CollectionViewCell {
    
    public var cellHeight: CGFloat? {
        
        didSet {
            
            guard let cellHeight = cellHeight else {
                return
            }

            titleLabel.snp.updateConstraints { make in
                make.height.equalTo(cellHeight)
            }
        }
        
    }
    
    override func makeUI() {
        super.makeUI()
        contentView.addSubview(titleLabel)
        titleLabel.snp.makeConstraints { make in
            make.edges.equalToSuperview()
            make.height.equalTo(10)
        }
    }
    
    
    public lazy var titleLabel: UILabel = {
        let weekTitleLabel = UILabel()
        weekTitleLabel.textColor = UIColor.assist_EEEEEE
        weekTitleLabel.font = Fonts.systemFont(ofSize: 10)
        weekTitleLabel.textAlignment = .center
        return weekTitleLabel
    }()
}
